<div class="row">
<?php
if (isset($files)) {
    $path = base_url('public/images/sanpham');
    foreach ($files as $pic) {
        ?>
        <img src="<?php echo $path . '/' . $pic; ?>" ></img>
        <?php
    }
}
?>
</div>